package sample;

import java.util.ArrayList;
import java.util.List;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement(name="besuper")
@XmlAccessorType(XmlAccessType.FIELD)
public class Besuper {
	@XmlElementWrapper(name="users")
	@XmlElement(name="user")
	private List<User> users;
	
	@XmlElementWrapper(name="questions")
	@XmlElement(name="question")
	private List<Question> questions;
	
	@XmlElementWrapper(name="answers")
	@XmlElement(name="answer")
	private List<Answer> answers;
	
	public Besuper() {
		users=new ArrayList<User>();
		questions=new ArrayList<Question>();
		answers=new ArrayList<Answer>();
	}

	public List<User> getUsers() {
		return users;
	}

	public void setUsers(List<User> users) {
		this.users = users;
	}

	public List<Question> getQuestions() {
		return questions;
	}

	public void setQuestions(List<Question> questions) {
		this.questions = questions;
	}

	public List<Answer> getAnswers() {
		return answers;
	}

	public void setAnswers(List<Answer> answers) {
		this.answers = answers;
	}
	
	
}
